from pathlib import Path

p = Path('/Users/tyrion/Documents/02-learning/TEST/testFile.txt')
filecontext = p.read_text()
print(filecontext)

file=open('/Users/tyrion/Documents/02-learning/TEST/testFile.txt','r')
string=file.read()
print(string)

file=open('/Users/tyrion/Documents/02-learning/TEST/testFile.txt','a')
string2=file.write('阿爷无大儿，木兰无长兄，愿为市鞍马，从此替爷征。\n')
file.close()